<?php
namespace PsiFramework\Classes\Util\Parameters\Object\Operations\Elements;

import("Classes.Util.Parameters.Object.Operations.Elements.OperationClause");
import("Classes.Util.Parameters.Object.Operations.Elements.OperationColumn");
import("Classes.Util.Parameters.Object.Operations.Elements.OperationElement");
import("Classes.Util.Parameters.Object.Operations.Elements.OperationValue");

use \PsiFramework\Classes\Util\Parameters\Object\Operations\Elements\OperationClause;
use \PsiFramework\Classes\Util\Parameters\Object\Operations\Elements\OperationColumn;
use \PsiFramework\Classes\Util\Parameters\Object\Operations\Elements\OperationElement;

/**
 * PsiFramework
 * Php Simple Framework
 *
 * @author Rémi San
 * @version beta
 */

/**
 * The Trigger class is the class to manage object parameters operation clauses
 *
 * @package Util.Parameters.Object
 */
class OperationSimpleClause extends OperationClause
{

    public function __construct(
        /*string*/ $type=null,
        OperationColumn $column=null,
        OperationElement $value=null
    )
    {
        parent::__construct($type);
        $this->_elements[0] = $column ;
        $this->_elements[1] = $value ;
    }

    public function getColumn()
    {
        return $this->_elements[0] ;
    }

    public function setColumn(OperationColumn $column)
    {
        $this->_elements[0] = $column ;
    }

    public function getValue()
    {
        return $this->_elements[1] ;
    }

    public function setValue(OperationElement $value)
    {
        $this->_elements[1] = $value ;
    }
}
